
/*
 * @项目名称: 模板开发
 * @FilePath: /meek/src/components/selectevent.js
 * @Author: 1106408264@qq.com
 * @Date: 2017-05-25T13:47:20+08:00
 * @LastEditors: 
 * @LastEditTime: 2020-01-02T15:34:56+08:00
 * Copyright (c) 2018-2022 
 */

/**
 * Created by zhangyong on 2017/5/25.
 */
/**
 * 选择结束时，SelectEvent将会被派发
 *
 * @class selectevent
 * @extends BaseObject
 * @module component
 *
 *
 */

import BaseEvent from '../core/baseevent'

export default class SelectEvent extends BaseEvent {

  constructor(type, features, event) {

    super(type)

    /**
     * The feature being selected
     */
    this.selectedFeatures = features

    /**
     *
     */
    this.browserEvent = event
  }

}

/**
 * The select event
 * @type {{SELECT: string}}
 */
SelectEvent.EventType = {
  /**
   * Triggered upon features select
   * @api stable
   */
  SELECT: 'select',
  CLEAR: 'clear',
  SELECT_HOLE: 'select_hole'
}
